import { Model, DataType, } from "sequelize-typescript";
import { Table, Column } from './decorate';

@Table({
    underscored: true,
    underscoredAll: true,
    timestamps: true,
    paranoid: true,
    indexes: [
        {
            fields: ["album_id"]
        }
    ]
})
export default class Picture extends Model<Picture> { 

    @Column({
        type: DataType.TEXT
    })
    url !: string ;
    @Column
    title !: string ;
    @Column
    albumId !: number ;
}